package basics.day13.static_def;

/*
 * static:
 *   1. 对象的共享数据
 *   2. 可以被静态成员调用，也可以直接被类调用
 * */
public class Test {
    public static void main(String[] args) {
        Person p1 = new Person();
        p1.name = "张三";
        Person p2 = new Person();
        p2.name = "王五";
        p2.className = "阜师院";
        System.out.println("p1.className  " + p1.className);
        System.out.println("p2.className  " + p2.className);
        System.out.println("Person.className  " + Person.className);
    }
}
